package com.ttx.pattern.example.observer.java.observers;

import java.util.Observable;
import java.util.Observer;

/**
 * 使用java内置api实现
 * @author TimFruit
 * @date 2019/5/21 14:20
 */

public class ReaderA implements Observer {
    @Override public void update(Observable o, Object msg) {
        System.out.println("ReaderA收到更新的内容: " + msg);
    }
}
